import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner read=new Scanner(System.in);
		int n=read.nextInt();
		int a[]=new int[n+1];
		int i;
		for(i=0;i<n;i++){
			a[i]=read.nextInt();
		}
		a[n]=read.nextInt();
		Arrays.sort(a);
		for(i=0;i<=n;i++){
			System.out.print(a[i]+" ");
		}
	}
}
